import { getReportTable } from '@/api/home'

export default defineStore('useHome', {
  state: () => ({}),
  getters: {},
  actions: {
    /**
     * 获取报表信息
     * @param {Object} params 请求参数
     * @returns 报表内容
     */
    async getReportTable (params) {
      const url = $globalRequestUrl({
        url: getReportTable
      })
      return await $globalRequest(url, params, { method: 'GET' })
    }
  }
})
